package com.aihna.mall.domain.bo;

import com.aihna.mall.domain.StoreProductProperty;
import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品属性业务对象 vvl_store_product_property
 *
 * @author Joseph.Chen
 * @date 2024-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StoreProductProperty.class, reverseConvertGenerate = false)
public class StoreProductPropertyBo extends BaseEntity {

    /**
     * 属性ID
     */
    @NotNull(message = "属性ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 属性名
     */
    @NotBlank(message = "属性名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 备注
     */
    private String remark;


}
